<?php			
	include_once("./View/Topo.php");
?>		
<fieldset>
	<legend> Cadastro de Produto </legend>
			
		<form role="form" action="" method="POST">
			
			<input type="hidden" name="metodo" value="salvar"/>
			
					<div class="row">
						<div class="form-group col-sm-4">
							<label> Codigo </label>
							<input class="form-control" name="codigo" type="number" value="<?php echo $this->produto->getCodigo(); ?>" readonly/>
						</div>
					</div>
					
					<div class="row">
						<div class="form-group col-sm-12">
							<label> Nome </label>
							<input class="form-control" name="nome" type="text" value="<?php echo $this->produto->getNome(); ?>"/>
						</div>
					</div>
					
					<div class="row">
						<div class="form-group col-sm-12">
							<label> Marca </label>
							<input class="form-control" name="marca" type="text" value="<?php echo $this->produto->getMarca();?>"/>
						</div>
					</div>
										
					<div class="row">
						<div class="form-group col-sm-12">
							<label> Modelo </label>
							<input class="form-control" name="modelo" type="text" value="<?php echo $this->produto->getModelo();?>"/>
						</div>
					</div>

					<div class="row">
						<div class="form-group col-sm-12">
							<label> Preco </label>
							<input class="form-control" name="preco" type="number" value="<?php echo $this->produto->getPreco();?>"/>
						</div>
					</div>
					
					<div class="row">
						<div class="form-group col-sm-12">
							<label> Estoque </label>
							<input class="form-control" name="estoque" type="text" value="<?php echo $this->produto->getEstoque();?>"/>
						</div>
					</div>										
					
					<div class="row pull-right">
						<div class="col-sm-12">	
							
							<a class="btn btn-danger" href="AcaoProduto.php"> 
								<span class="glyphicon glyphicon-remove"></span> Cancelar 
							</a>

							<button type="submit" class="btn btn-success">
								<span class="glyphicon glyphicon-ok"></span> Salvar 
							</button>				
						</div>
					</div>			

						

			</form>		
		
		</fieldset>
		

<?php			
	include_once("./View/Rodape.php");
?>